<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ include file="/common/common.jsp"%>

<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="viewport"
        content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <title><%=systemName %></title>

  <!-- Set render engine for 360 browser -->
  <meta name="renderer" content="webkit">

  <!-- No Baidu Siteapp-->
  <meta http-equiv="Cache-Control" content="no-siteapp"/>

  <link rel="icon" type="image/png" href="<%=path %>/res/assets/i/favicon.png">

  <!-- Add to homescreen for Chrome on Android -->
  <meta name="mobile-web-app-capable" content="yes">
  <link rel="icon" sizes="192x192" href="<%=path %>/res/assets/i/app-icon72x72@2x.png">

  <!-- Add to homescreen for Safari on iOS -->
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
  <link rel="apple-touch-icon-precomposed" href="<%=path %>/res/assets/i/app-icon72x72@2x.png">

  <!-- Tile icon for Win8 (144x144 + tile color) -->
  <meta name="msapplication-TileImage" content="<%=path %>/res/assets/i/app-icon72x72@2x.png">
  <meta name="msapplication-TileColor" content="#0e90d2">

  <!-- SEO: If your mobile URL is different from the desktop URL, add a canonical link to the desktop page https://developers.google.com/webmasters/smartphone-sites/feature-phones -->
  <!--
  <link rel="canonical" href="http://www.example.com/">
  -->

  <link rel="stylesheet" href="<%=path %>/res/assets/css/amazeui.min.css">
  <link rel="stylesheet" href="<%=path %>/res/assets/css/app.css">
</head>
<body>
<!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a
  href="http://browsehappy.com/" target="_blank">升级浏览器</a>
  以获得更好的体验！</p>
<![endif]-->

	<%@ include file="/common/nav.jsp"%>


	<div class="am-g">
		<div class="am-u-lg-6 am-u-md-8 am-u-sm-centered">
			<h3>注册</h3>
			<hr>
			<c:if test="${!empty msg }">
				<font color="red">${msg }</font>
				<br/>
			</c:if>
			<br>

			<form action="<%=path %>/registerAcrion" class="am-form" method="post" id="form">
				<div class="am-form-group am-form-icon am-form-feedback">
					<label class="am-form-label" for="cellphone">手机号:</label> 
					<input type="text" id="cellphone" name="cellphone" class="am-form-field" required="required" minlength="11" maxlength="11" placeholder="请输入11位手机号" data-validation-message="请输入11位手机号" pattern="^1[3|4|5|7|8][0-9]\d{4,8}$" value="${cellphone }">
				</div>
				<div class="am-form-group am-form-icon am-form-feedback">
					<label class="am-form-label" for="password">输入密码:</label> 
					<input type="password" id="password" name="password" class="am-form-field" required="required" minlength="6" maxlength="32" placeholder="请输入密码" value="${password }">
				</div>
				<div class="am-form-group am-form-icon am-form-feedback">
					<label class="am-form-label" for="password2">再次输入密码:</label> 
					<input type="password" id="password2" name="password2" class="am-form-field" required="required" minlength="6" maxlength="32" placeholder="请再次输入密码" data-equal-to="#password" data-validation-message="两次输入的密码必须一致" value="${password }">
				</div>
				
				<div class="am-cf">
					<input type="submit" name="" value="注册" class="am-btn am-btn-primary am-btn-sm am-fl">
				</div>
			</form>

			
			<hr>
			<p>© 2015 AllMobilize, Inc. Licensed under MIT license.</p>
		</div>
	</div>
    
<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="<%=path %>/res/assets/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="<%=path %>/res/assets/js/jquery.min.js"></script>
<!--<![endif]-->
<script src="<%=path %>/res/assets/js/amazeui.min.js"></script>

<script type="text/javascript">

	$(function() {
		$('#form').validator({
			onValid : function(validity) {
				$(validity.field).closest('.am-form-group').find('.am-alert').hide();
						
			},
			onInValid : function(validity) {
				var $field = $(validity.field);
				var $group = $field.closest('.am-form-group');
				var $alert = $group.find('.am-alert');
				// 使用自定义的提示信息 或 插件内置的提示信息
				var msg = $field.data('validationMessage')
						|| this.getValidationMessage(validity);
	
				if (!$alert.length) {
					$alert = $('<div class="am-alert am-alert-danger"></div>').hide().appendTo($group);
				}
	
				$alert.html(msg).show();
			}
		});
				
	});
</script> 

</body>
</html>
